package ee.laevade.pommitamine;

import java.util.ArrayList;
import java.util.Arrays;


public class ArrayOfGames {

	static ArrayList games = new ArrayList();
	
	public static void add(){
		ArrayList game = new ArrayList();
		game.add(true);
		game.add(true);
		game.add(new ArrayList<ArrayList>());
		game.add(new ArrayList<ArrayList>());
		games.add(game);
		System.out.println(games);
	}
	
	public static void setPlayerOne(int i){
		 System.out.println("setib");
		((ArrayList) games.get(i)).set(0,false);
	}
	public static void setPlayerTwo(int i){
		((ArrayList) games.get(i)).set(1,false);
	}
	public static void setPlayer1(int i, ArrayList l){
		((ArrayList) games.get(i)).set(2,l);
	}
	public static void setPlayer2(int i, ArrayList l){
		((ArrayList) games.get(i)).set(3,l);
	}
	
	
}
